#ifndef _WX_GENERIC_ABOUTDLGG_H_
#define _WX_GENERIC_ABOUTDLGG_H_

#include "wx/defs.h"

#if wxUSE_ABOUTDLG

#include "wx/dialog.h"

class wxAboutDialogInfo;
class wxSizer;
class wxSizerFlags;

class wxGenericAboutDialog : public wxDialog {
  public:
    wxGenericAboutDialog() { Init(); }
    wxGenericAboutDialog( const wxAboutDialogInfo& info ) {
      Init();
      ( void )Create( info );
    }
    bool Create( const wxAboutDialogInfo& info );
  protected:
    virtual void DoAddCustomControls() { }
    void AddControl( wxWindow *win, const wxSizerFlags& flags );
    void AddControl( wxWindow *win );
    void AddText( const wxString& text );

    #if wxUSE_COLLPANE
    // add a wxCollapsiblePane containing the given text
    void AddCollapsiblePane( const wxString& title, const wxString& text );
    #endif // wxUSE_COLLPANE

  private:
    void Init() { m_sizerText = NULL; }
    wxSizer *m_sizerText;
};

void wxGenericAboutBox( const wxAboutDialogInfo& info );

#endif // wxUSE_ABOUTDLG

#endif // _WX_GENERIC_ABOUTDLGG_H_

